# -*- coding: utf-8 -*-

class Role:
  def __init__(self, symbol, name=None):
    self.symbol = symbol
    if name == None: self.name = symbol
    else:            self.name = name

  def __eq__(self, role): return self.symbol == role.symbol
  def __str__(self): return self.name

class Helper:
  Goal               = Role("GO", "Goal")
  DefenderRight      = Role("DR", "Right Defender")
  DefenderLeft       = Role("DL", "Left Defender")
  DefenderCenter     = Role("DC", "Center Defender")
  Libero             = Role("LL", "Libero")
  MidfielderDefender = Role("MD", "Midfielder Defender")
  MidfielderForward  = Role("MF", "Midfielder Forward")
  WingerRight        = Role("WR", "Right Winger")
  WingerLeft         = Role("WL", "Left Winger")
  ForwardCenter      = Role("FC", "Forward Center")
  FreePlayer         = Role("FF", "FreePlayer")
  AllRoles = {
    "GO": Role("GO", "Goal"),
    "DR": Role("DR", "Right Defender"),
    "DL": Role("DL", "Left Defender"),
    "DC": Role("DC", "Center Defender"),
    "LL": Role("LL", "Libero"),
    "MD": Role("MD", "Midfielder Defender"),
    "MF": Role("MF", "Midfielder Forward"),
    "WR": Role("WR", "Right Winger"),
    "WL": Role("WL", "Left Winger"),
    "FC": Role("FC", "Forward Center"),
    "FF": Role("FF", "FreePlayer")
  }